﻿﻿//======================================================================
//
//        Copyright : Zhengzhou Strawberry Computer Technology Co.,LTD.
//        All rights reserved
//        
//        Application:NFinal MVC framework
//        Filename :{Index}.cs
//        Description :模板提示类
//
//        created by Lucas at  2015-6-30`
//     
//        WebSite:http://www.nfinal.com
//
//======================================================================
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace BlackHtml5.WebSite.Views.Default.IndexController
{
    public partial class Index : System.Web.UI.Page
    {
		//数据库模型
        public class __Index_articleNews__:NFinal.Struct
		{
			public System.Int64 id;
			public System.Int64? channel_id;
			public System.Int64? category_id;
			public System.String title;
			public System.String link_url;
			public System.String img_url;
			public System.String seo_title;
			public System.String seo_description;
			public System.String tags;
			public System.String zhaiyao;
			public System.String content;
			public System.Int64? sort_id;
			public System.Int64? click;
			public System.Int64? status;
			public System.Int16? is_msg;
			public System.Int16? is_top;
			public System.Int16? is_red;
			public System.Int16? is_hot;
			public System.Int16? is_slide;
			public System.Int16? is_sys;
			public System.String user_name;
			public System.DateTime? add_time;
			public System.DateTime? update_time;
			public System.Int64? user_id;
			#region 写Json字符串
			public override void WriteJson(System.IO.TextWriter tw)
			{
				tw.Write("{");
						tw.Write("\"id\":");
						tw.Write(id.ToString());
						tw.Write(",");
						tw.Write("\"channel_id\":");
						tw.Write(channel_id==null?"null" : channel_id.ToString());
						tw.Write(",");
						tw.Write("\"category_id\":");
						tw.Write(category_id==null?"null" : category_id.ToString());
						tw.Write(",");
						tw.Write("\"title\":");
						if(title==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(title);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"link_url\":");
						if(link_url==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(link_url);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"img_url\":");
						if(img_url==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(img_url);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"seo_title\":");
						if(seo_title==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(seo_title);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"seo_description\":");
						if(seo_description==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(seo_description);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"tags\":");
						if(tags==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(tags);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"zhaiyao\":");
						if(zhaiyao==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(zhaiyao);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"content\":");
						if(content==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(content);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"sort_id\":");
						tw.Write(sort_id==null?"null" : sort_id.ToString());
						tw.Write(",");
						tw.Write("\"click\":");
						tw.Write(click==null?"null" : click.ToString());
						tw.Write(",");
						tw.Write("\"status\":");
						tw.Write(status==null?"null" : status.ToString());
						tw.Write(",");
						tw.Write("\"is_msg\":");
						tw.Write(is_msg==null?"null" : is_msg.ToString());
						tw.Write(",");
						tw.Write("\"is_top\":");
						tw.Write(is_top==null?"null" : is_top.ToString());
						tw.Write(",");
						tw.Write("\"is_red\":");
						tw.Write(is_red==null?"null" : is_red.ToString());
						tw.Write(",");
						tw.Write("\"is_hot\":");
						tw.Write(is_hot==null?"null" : is_hot.ToString());
						tw.Write(",");
						tw.Write("\"is_slide\":");
						tw.Write(is_slide==null?"null" : is_slide.ToString());
						tw.Write(",");
						tw.Write("\"is_sys\":");
						tw.Write(is_sys==null?"null" : is_sys.ToString());
						tw.Write(",");
						tw.Write("\"user_name\":");
						if(user_name==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(user_name);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"add_time\":");
						if(add_time==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(add_time.ToString());
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"update_time\":");
						if(update_time==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(update_time.ToString());
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"user_id\":");
						tw.Write(user_id==null?"null" : user_id.ToString());
				tw.Write("}");
			}
			#endregion
		}
		public class __Index_articleCase__:NFinal.Struct
		{
			public System.Int64 id;
			public System.Int64? channel_id;
			public System.Int64? category_id;
			public System.String title;
			public System.String link_url;
			public System.String img_url;
			public System.String seo_title;
			public System.String seo_description;
			public System.String tags;
			public System.String zhaiyao;
			public System.String content;
			public System.Int64? sort_id;
			public System.Int64? click;
			public System.Int64? status;
			public System.Int16? is_msg;
			public System.Int16? is_top;
			public System.Int16? is_red;
			public System.Int16? is_hot;
			public System.Int16? is_slide;
			public System.Int16? is_sys;
			public System.String user_name;
			public System.DateTime? add_time;
			public System.DateTime? update_time;
			public System.Int64? user_id;
			#region 写Json字符串
			public override void WriteJson(System.IO.TextWriter tw)
			{
				tw.Write("{");
						tw.Write("\"id\":");
						tw.Write(id.ToString());
						tw.Write(",");
						tw.Write("\"channel_id\":");
						tw.Write(channel_id==null?"null" : channel_id.ToString());
						tw.Write(",");
						tw.Write("\"category_id\":");
						tw.Write(category_id==null?"null" : category_id.ToString());
						tw.Write(",");
						tw.Write("\"title\":");
						if(title==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(title);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"link_url\":");
						if(link_url==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(link_url);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"img_url\":");
						if(img_url==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(img_url);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"seo_title\":");
						if(seo_title==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(seo_title);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"seo_description\":");
						if(seo_description==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(seo_description);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"tags\":");
						if(tags==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(tags);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"zhaiyao\":");
						if(zhaiyao==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(zhaiyao);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"content\":");
						if(content==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(content);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"sort_id\":");
						tw.Write(sort_id==null?"null" : sort_id.ToString());
						tw.Write(",");
						tw.Write("\"click\":");
						tw.Write(click==null?"null" : click.ToString());
						tw.Write(",");
						tw.Write("\"status\":");
						tw.Write(status==null?"null" : status.ToString());
						tw.Write(",");
						tw.Write("\"is_msg\":");
						tw.Write(is_msg==null?"null" : is_msg.ToString());
						tw.Write(",");
						tw.Write("\"is_top\":");
						tw.Write(is_top==null?"null" : is_top.ToString());
						tw.Write(",");
						tw.Write("\"is_red\":");
						tw.Write(is_red==null?"null" : is_red.ToString());
						tw.Write(",");
						tw.Write("\"is_hot\":");
						tw.Write(is_hot==null?"null" : is_hot.ToString());
						tw.Write(",");
						tw.Write("\"is_slide\":");
						tw.Write(is_slide==null?"null" : is_slide.ToString());
						tw.Write(",");
						tw.Write("\"is_sys\":");
						tw.Write(is_sys==null?"null" : is_sys.ToString());
						tw.Write(",");
						tw.Write("\"user_name\":");
						if(user_name==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(user_name);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"add_time\":");
						if(add_time==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(add_time.ToString());
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"update_time\":");
						if(update_time==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(update_time.ToString());
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"user_id\":");
						tw.Write(user_id==null?"null" : user_id.ToString());
				tw.Write("}");
			}
			#endregion
		}
		//函数内变量
        public class Index_AutoComplete:Controller
        {
			//参数变量
			//数据库变量
						public NFinal.List<__Index_articleNews__> articleNews;
						public NFinal.List<__Index_articleCase__> articleCase;
			//一般变量
				public Dictionary<string, string> global;
			//DAL函数声明变量
        }
		//变量存储类,用于自动完成.
        public Index_AutoComplete ViewBag = new Index_AutoComplete();
    }
}